#!/bin/bash
echo "🚀 开始部署: $(date)" >> logs/deploy.log

cd /project/node || exit

git pull origin master >> logs/deploy.log 2>&1

pnpm i >> logs/deploy.log 2>&1

pm2 restart node >> logs/deploy.log 2>&1

echo "✅ 部署完成: $(date)" >> logs/deploy.log
